import { createAPI } from '@/utils/request'

// 获取权限组列表
export const list = data => createAPI('/permissions', 'get', data)
// 获取权限组简单列表
export const simple = data => createAPI('/permissions/simple', 'get', data)
// 权限组添加
export const add = data => createAPI('/permissions', 'post', data)
// 权限组修改
export const update = data => createAPI(`/permissions/${data.id}`, 'put', data)
// 权限组删除
export const remove = data => createAPI(`/permissions/${data.id}`, 'delete', data)
// 权限组详情
export const detail = data => createAPI(`/permissions/${data.id}`, 'get', data)
